<?php
class DiscountingProduct extends Controller
{
    public function actionIndex()
    {
        $page = 2;
        $perPage = 4;
        $this->setTitle('Sản Phẩm Khuyến mại');
        $fetchOptions = array(
            'page' => $page,
            'perPage' => $perPage
        );
        $productModel = $this->_loader->model('ProductModel');
        $viewParams = array(
            'products' => $productModel->getDiscountingProduct($fetchOptions)
        );
        return $this->responseView('module/discounting_product', $viewParams);
    }
}